---
title: npm-ping
section: 1
description: Ping npm registry
github_repo: npm/cli
github_branch: release/v7
github_path: docs/content/commands/npm-ping.md
redirect_from:
  - /cli-documentation/v7/cli-commands/npm-ping
  - /cli-documentation/v7/cli-commands/ping
  - /cli-documentation/v7/commands/npm-ping
  - /cli-documentation/v7/commands/ping
  - /cli-documentation/v7/npm-ping
  - /cli-documentation/v7/ping
  - /cli/v7/cli-commands/npm-ping
  - /cli/v7/cli-commands/ping
  - /cli/v7/commands/ping
  - /cli/v7/npm-ping
  - /cli/v7/ping
---

### Synopsis

```bash
npm ping [--registry <registry>]
```

Note: This command is unaware of workspaces.

### Description

Ping the configured or given npm registry and verify authentication. If it works it will output something like:

```bash
Ping success: {*Details about registry*}
```

otherwise you will get:

```bash
Ping error: {*Detail about error}
```

### Configuration

#### `registry`

- Default: "https://registry.npmjs.org/"
- Type: URL

The base URL of the npm registry.

### See Also

- [npm doctor](/cli/v7/commands/npm-doctor)
- [npm config](/cli/v7/commands/npm-config)
- [npmrc](/cli/v7/configuring-npm/npmrc)
